.M-Flipper {
  position: relative;
  width: 60px;
  height: 90px;
  background-color: #000;
  border-radius: 10px;
  perspective: 400px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.M-Flipper .digital {
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  background-color: #000;
  border-radius: 10px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.M-Flipper .digital.front {
  transform-origin: 50% 100%;
  transform: rotateX(0deg);
}

.M-Flipper .digital.back {
  transform-origin: 50% 0%;
  transform: rotateX(180deg);
}

.M-Flipper.down .digital.front {
  transform: rotateX(-180deg);
}

.M-Flipper.up .digital.back {
  transform: rotateX(0deg);
}

.M-Flipper .digital::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 50%;
  top: 0;
  left: 0;
  background-color: #111;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.M-Flipper .digital::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 50%;
  bottom: 0;
  left: 0;
  background-color: #000;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.M-Flipper .digital.number0::before,
.M-Flipper .digital.number0::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,20 C70,20 80,30 80,50 C80,70 70,80 50,80 C30,80 20,70 20,50 C20,30 30,20 50,20 Z" fill="none" stroke="#fff" stroke-width="6"/></svg>');
  background-size: 80% 80%;
  background-position: center;
  background-repeat: no-repeat;
}

.M-Flipper .digital.number1::before,
.M-Flipper .digital.number1::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,20 L50,80" fill="none" stroke="#fff" stroke-width="6"/></svg>');
  background-size: 80% 80%;
  background-position: center;
  background-repeat: no-repeat;
}

.M-Flipper .digital.number2::before,
.M-Flipper .digital.number2::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,30 C20,20 30,20 50,20 C70,20 80,30 80,50 C80,70 70,80 50,80 C30,80 20,70 20,50" fill="none" stroke="#fff" stroke-width="6"/></svg>');
  background-size: 80% 80%;
  background-position: center;
  background-repeat: no-repeat;
}

.M-Flipper .digital.number3::before,
.M-Flipper .digital.number3::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 C30,20 50,20 80,20 C80,30 80,50 80,50 C80,70 70,80 50,80 C30,80 20,70 20,50" fill="none" stroke="#fff" stroke-width="6"/></svg>');
  background-size: 80% 80%;
  background-position: center;
  background-repeat: no-repeat;
}

.M-Flipper .digital.number4::before,
.M-Flipper .digital.number4::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 L20,80 L80,20" fill="none" stroke="#fff" stroke-width="6"/></svg>');
  background-size: 80% 80%;
  background-position: center;
  background-repeat: no-repeat;
}

.M-Flipper .digital.number5::before,
.M-Flipper .digital.number5::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M80,20 L20,20 L20,50 C20,70 30,80 50,80 C70,80 80,70 80,50" fill="none" stroke="#fff" stroke-width="6"/></svg>');
  background-size: 80% 80%;
  background-position: center;
  background-repeat: no-repeat;
}

.M-Flipper .digital.number6::before,
.M-Flipper .digital.number6::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M80,20 L20,20 L20,50 C20,70 30,80 50,80 C70,80 80,70 80,50 C80,30 70,20 50,20" fill="none" stroke="#fff" stroke-width="6"/></svg>');
  background-size: 80% 80%;
  background-position: center;
  background-repeat: no-repeat;
}

.M-Flipper .digital.number7::before,
.M-Flipper .digital.number7::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 L80,20 L80,80" fill="none" stroke="#fff" stroke-width="6"/></svg>');
  background-size: 80% 80%;
  background-position: center;
  background-repeat: no-repeat;
}

.M-Flipper .digital.number8::before,
.M-Flipper .digital.number8::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,20 C70,20 80,30 80,50 C80,70 70,80 50,80 C30,80 20,70 20,50 C20,30 30,20 50,20 Z" fill="none" stroke="#fff" stroke-width="6"/></svg>');
  background-size: 80% 80%;
  background-position: center;
  background-repeat: no-repeat;
}

.M-Flipper .digital.number9::before,
.M-Flipper .digital.number9::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M80,20 L20,20 L20,50 C20,70 30,80 50,80 C70,80 80,70 80,50 C80,30 70,20 50,20" fill="none" stroke="#fff" stroke-width="6"/></svg>');
  background-size: 80% 80%;
  background-position: center;
  background-repeat: no-repeat;
}